package com.liuzh.fitnessplan.database

import androidx.room.Database
import androidx.room.RoomDatabase
import com.liuzh.fitnessplan.database.bean.Sports
import com.liuzh.fitnessplan.database.bean.TimePlans
import com.liuzh.fitnessplan.database.bean.User
import com.liuzh.fitnessplan.database.dao.SportsDao
import com.liuzh.fitnessplan.database.dao.TimeDao
import com.liuzh.fitnessplan.database.dao.UserDao


@Database(entities = [User::class, Sports::class, TimePlans::class],version = 5 )
abstract class Database() : RoomDatabase() {
    abstract fun userDao() : UserDao
    abstract fun sportsDao() : SportsDao
    abstract fun timeDao() : TimeDao
}